import request from '@/utils/request'

// 查询达成成就用户通知列表
export function listMedalUserNotice(query) {
  return request({
    url: '/business/medalUserNotice/list',
    method: 'get',
    params: query
  })
}

// 查询达成成就用户通知详细
export function getMedalUserNotice(id) {
  return request({
    url: '/business/medalUserNotice/' + id,
    method: 'get'
  })
}

// 新增达成成就用户通知
export function addMedalUserNotice(data) {
  return request({
    url: '/business/medalUserNotice',
    method: 'post',
    data: data
  })
}

// 修改达成成就用户通知
export function updateMedalUserNotice(data) {
  return request({
    url: '/business/medalUserNotice',
    method: 'put',
    data: data
  })
}

// 删除达成成就用户通知
export function delMedalUserNotice(id) {
  return request({
    url: '/business/medalUserNotice/' + id,
    method: 'delete'
  })
}
